<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>编辑考勤</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<link rel="stylesheet" href="../../layui/css/layui.css"  media="all">
	<!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>
<script src="../../layui/layui.js" charset="utf-8"></script>
<body style="padding: 10px;background-color: rgb(236,240,245);">
	<h1 style="margin-bottom: 20px;">考勤管理</h1>
	<!-- 表单区+返回按钮 -->
	<div style="background-color: white;">
		<div class="layui-row">
			<!-- 返回按钮 -->
			<div class="layui-col-xs1" style="padding-left: 10px;padding-top: 10px;">
				<button type="button" class="layui-btn layui-btn-sm layui-btn-normal"><i class="layui-icon layui-icon-left"></i>返回</button>
			</div>
		</div>
		<!-- 分割线 -->
		<hr >
		<form class="layui-form layui-form-pane" action="" style="padding-left: 110px;">
			<!-- 第一排 -->
			<div class="layui-form-item">
				<div class="layui-inline" style="width: 45%">
					<label class="layui-form-label">状态</label>
					<div class="layui-input-block">
						<select name="city" lay-verify="required">
							<option value=""></option>
						</select>
					</div>
				</div>
				<div class="layui-inline" style="width: 45%">
					<label class="layui-form-label">备注</label>
					<div class="layui-input-block">
						<input name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
					</div>
				</div>
			</div>
			<!-- 第二排 -->
			<div class="layui-form-item">
				<div class="layui-inline" style="width: 45%">
					<label class="layui-form-label">类型</label>
					<div class="layui-input-block">
						<select name="city" disabled="disabled">
							<option value=""></option>
						</select>
					</div>
				</div>
			</div>
			<!-- 功能按钮 -->
			<div class="layui-form-item" style="padding: 15px 0;">
				<div class="layui-inline">
					<button class="layui-btn" lay-submit lay-filter="submitBtn">保存</button>
					<button type="reset" class="layui-btn layui-btn-primary">重置</button>
				</div>
			</div>
		</form>
	</div>
</body>
<script>
	//form模块
	layui.use('form', function(){
	  var form = layui.form;
	  
	  //监听提交
	  form.on('submit(submitBtn)', function(data){
	    layer.msg(JSON.stringify(data.field));
	    return false;
	  });
	});
</script>
</html>